<?php get_instance()->view('common/header');?>
<style type="text/css">
    .reason{border: 1px solid #e5e5e5;height: 100px;margin-top: 10px;overflow: auto;}
    .reason>p{position: relative;margin: 5px 0 0 5px;}
    .reason>p>i{position: absolute;right: 1px;top: -2px;color: red;font-weight: 200;}
</style>
<div class="page-container home">
    <?php get_instance()->view('common/sidebar');?>
    <div class="page-content-wrapper">
        <div class="page-content">
            <div class="row">
                <div class="col-md-12">
                    <!-- BEGIN PAGE TITLE & BREADCRUMB-->
                    <h3 class="page-title"> <?php echo $title?> </h3>
                    <ul class="page-breadcrumb breadcrumb">
                        <li class="btn-group"> <a class="btn default ml_5 return" href="<?php echo getUrl('home');?>"><i class="fa fa-chevron-left"></i> 返回</a> </li>
                        <li> <i class="fa fa-home"></i> <a href="<?php echo getUrl('home');?>"> 首页  <i class="fa fa-angle-right"></i> </a></li>
                        <li><a href="#"><?php echo $title?><i class="fa fa-angle-right"></i></a></li>
                    </ul>
                    <!-- END PAGE TITLE & BREADCRUMB-->
                </div>
            </div>
            <!--开始-->
            <div class="row">
                <div class="col-md-12">
                    <!-- BEGIN VALIDATION STATES-->
                    <div class="portlet box">
                        <div class="portlet-body form">
                            <!-- BEGIN FORM-->
                            <form action="" class="form-horizontal" method="post" novalidate="novalidate" id="frm">
                                <div class="form-body">
                                	<h3>基础配置</h3>
                                    <hr/>
                                    <div class="form-group">
                                        <label class="control-label col-md-3">地图key <span class="required">*</span></label>
                                        <div class="col-md-5">
                                            <input class="form-control required" name="map_key" value="<?php echo $info['map_key']?>" type="text">
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <label class="control-label col-md-3">客服电话<span class="required">*</span></label>
                                        <div class="col-md-5">
                                            <input class="form-control required" name="customer_tel" value="<?php echo $info['customer_tel']?>" type="text">
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <label class="control-label col-md-3">最小提现金额 <span class="required">*</span></label>
                                        <div class="col-md-5">
                                             <div class="input-group">
	                                            <input class="form-control required" name="min_withdraw_cash_amount" value="<?php echo $info['min_withdraw_cash_amount']?>" type="text">
												<span class="input-group-addon">
													元
												</span>
											</div>
											<span for="min_withdraw_cash_amount" class="help-block validate_message hide"></span>
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <label class="control-label col-md-3">接单范围 <span class="required">*</span></label>
                                        <div class="col-md-5">
                                             <div class="input-group">
												<input class="form-control required" name="deliveryman_range" value="<?php echo $info['deliveryman_range']?>" type="text">
												<span class="input-group-addon">
													m
												</span>
											</div>
											<span for="deliveryman_range" class="help-block validate_message hide"></span>
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <label class="control-label col-md-3">接单过期时间 <span class="required">*</span></label>
                                        <div class="col-md-5">
                                             <div class="input-group">
												<input class="form-control required" name="rob_expect_time" value="<?php echo $info['rob_expect_time']?>" type="text">
												<span class="input-group-addon">
													分钟
												</span>
											</div>
											<span for="deliveryman_range" class="help-block validate_message hide"></span>
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <label class="control-label col-md-3">定位间隔时间</label>
                                        <div class="col-md-5">
                                             <div class="input-group">
												<input class="form-control" name="postion_time" value="<?php echo $info['postion_time']?>" type="text">
												<span class="input-group-addon">
													秒
												</span>
											</div>
											<span for="postion_time" class="help-block validate_message hide"></span>
                                        </div>
                                    </div>
                                	<h3>配送费</h3>
                                    <hr/>
                                    <div class="form-group">
                                        <label class="control-label col-md-3">基础配送费 <span class="required">*</span></label>
                                        <div class="col-md-5">
                                            <div class="input-group">
												<input class="form-control required" type="text" name="base_distribution_fee" value="<?php echo $info['base_distribution_fee']?>">
												<span class="input-group-addon">
													元
												</span>
											</div>
											<span for="base_distribution_fee" class="help-block validate_message hide"></span>
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <label class="control-label col-md-3">基础配送距离 <span class="required">*</span></label>
                                        <div class="col-md-5">
                                            <div class="input-group">
												<input class="form-control required" type="text" name="base_distribution_distance" value="<?php echo $info['base_distribution_distance']?>">
												<span class="input-group-addon">
													km
												</span>
											</div>
											<span for="base_distribution_distance" class="help-block validate_message hide"></span>
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <label class="control-label col-md-3">基础配送重量 <span class="required">*</span></label>
                                        <div class="col-md-5">
                                            <div class="input-group">
												<input class="form-control required" type="text" name="base_distribution_weight" value="<?php echo $info['base_distribution_weight']?>">
												<span class="input-group-addon">
													kg
												</span>
											</div>
											<span for="base_distribution_weight" class="help-block validate_message hide"></span>
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <label class="control-label col-md-3">超过基础距离收取费用<span class="required">*</span></label>
                                        <div class="col-md-5">
											 <div class="input-group">
                                            	<span class="input-group-addon">
													每超过
												</span>
                                            	<input class="form-control" type="text" name="exceed_base_distance_number" value="<?php echo $info['exceed_base_distance_number']?>">
                                            	<span class="input-group-addon">
													公里收取
												</span>
												<input class="form-control required" type="text" name="exceed_base_distance" value="<?php echo $info['exceed_base_distance']?>">
												<span class="input-group-addon">
													元
												</span>
											</div>
											<span for="exceed_base_distance" class="help-block validate_message hide"></span>
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <label class="control-label col-md-3">超过基础重量收取费用 <span class="required">*</span></label>
                                        <div class="col-md-5">
                                            <div class="input-group">
                                            	<span class="input-group-addon">
													每超过
												</span>
                                            	<input class="form-control" type="text" name="exceed_base_weight_number" value="<?php echo $info['exceed_base_weight_number']?>">
                                            	<span class="input-group-addon">
													千克收取
												</span>
												<input class="form-control required" type="text" name="exceed_base_weight" value="<?php echo $info['exceed_base_weight']?>">
												<span class="input-group-addon">
													元
												</span>
											</div>
											<span for="exceed_base_weight_number" class="help-block validate_message hide"></span>
                                        </div>
                                    </div>
                                </div>
                                <div class="form-actionsc fluid">
                                    <div class="col-md-offset-3 col-md-9">
                                        <button type="submit" class="btn green"><i class="fa fa-save"></i> 保存</button>
                                        <a href="<?php echo getUrl('home');?>" class="btn default"><i class="fa fa-chevron-left"></i> 返回</a>
                                    </div>
                                </div>
                            </form>
                            <!-- END FORM-->
                        </div>
                    </div>
                    <!-- END VALIDATION STATES-->
                </div>
            </div>
            <!--结束-->
        </div>
    </div>
</div>
<script type="text/javascript">
    $(function(){
        $.e_validate.init('#frm',{});
    });

    cropitMaster({
        uploadBtn:$('.upload-btn'),
        width:'102px',
        height:'102px',
        complete:function(btn,data){
            $('#icn-img').attr('src', data);
            $('#pic').val(data).change();
        }
    });
</script>
</body>
</html>